package com.ws.universal.tools.wsui.headle;

import android.content.res.Resources;
import android.view.View;

import com.ws.universal.tools.wsui.skin.IQMUISkinRuleHandler;
import com.ws.universal.tools.wsui.skin.QMUISkinManager;

import org.jetbrains.annotations.NotNull;

public class QMUISkinRuleBackgroundHandler implements IQMUISkinRuleHandler {
    @Override
    public void handle(@NotNull QMUISkinManager skinManager, @NotNull View view, @NotNull Resources.Theme theme, @NotNull String name, int attr) {
//        if(view instanceof QMUIRoundButton){
//            ((QMUIRoundButton)view).setBgData(
//                    QMUIResHelper.getAttrColorStateList(view.getContext(), theme, attr));
//        }else if(view instanceof QMUIProgressBar){
//            view.setBackgroundColor(QMUIResHelper.getAttrColor(theme, attr));
//        }else if(view instanceof QMUISlider){
//            ((QMUISlider)view).setBarNormalColor(QMUIResHelper.getAttrColor(theme, attr));
//        }else{
//            QMUIViewHelper.setBackgroundKeepingPadding(view,
//                    QMUIResHelper.getAttrDrawable(view.getContext(), theme, attr));
//        }
    }
}
